package com.czp.infosharingplatformapp.service;

import com.czp.infosharingplatformapp.dto.CategoryResponse;
import com.czp.infosharingplatformapp.model.Category;
import java.util.List;

public interface CategoryService {
    List<Category> findAllTopCategories(); // 获取所有一级分类
    List<Category> findSubCategories(Long parentId); // 获取某一级分类的二级分类
    Category createCategory(String name, Long parentId); // 创建分类
    void deleteCategory(Long categoryId); // 删除分类
    void initializeCategories();
    List<Category> getAllCategories();
    List<Category> getAllSubCategories();
    CategoryResponse convertToCategoryResponse(Category category);
}